package com.cc.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 采购结算表
 * </p>
 *
 * @author 晓东√
 * @since 2025-09-19 11:18
 */
@Getter
@Setter
@ToString
@TableName("purchase_settlement")
@Schema(name = "PurchaseSettlement", description = "采购结算表")
public class PurchaseSettlement extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 采购结算ID
     */
    @Schema(description = "采购结算ID")
    @TableId(value = "ps_id", type = IdType.AUTO)
    private Integer psId;

    /**
     * 供应商ID
     */
    @TableField("supplier_id")
    @Schema(description = "供应商ID")
    private Integer supplierId;

    /**
     * 结算日期
     */
    @Schema(description = "结算日期")
    @TableField("settlement_date")
    private String settlementDate;

    /**
     * 总金额
     */
    @TableField("total_amount")
    @Schema(description = "总金额")
    private Double totalAmount;

    /**
     * 结算状态 0：未结算   1：已结束
     */
    @TableField("settlement_status")
    @Schema(description = "结算状态 0：未结算   1：已结算")
    private String settlementStatus;

    @TableField("order_count")
    @Schema(description = "订单数量")
    private int orderCount;

    @TableField("Shipment")
    private Date shipment;
}
